package com.example.demo.service;


import com.example.demo.entity.Order;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author liuxianchun
 * @date 2021/1/21
 */
@Component
public interface OrderService {

    void addOrder(Long orderId,int userId, int productId, int productNum, BigDecimal productPrice);

    void addOrderNoPay(Long orderId,int userId, int productId, int productNum, BigDecimal productPrice);

    List<Order> getOrders(Long orderId);

    List<Long> getOrderIdByUser(int userId);

    Long getOrderId();

    int orderPay(Integer userId, Long orderId);
}
